package com.ssyx.payment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * ClassName:ProductFeignClient
 * Description:
 *
 * @Author kay
 * @Create 2024/5/25 17:46
 * @Version 1.0
 */
@FeignClient(value = "service-product")
public interface ProductFeignClient {
    //根据orderNo,修改产品表库存
    @PostMapping("/api/product/inner/updateStockByOrderNo/{orderNo}")
    Boolean updateStockByOrderNo(@PathVariable String orderNo);
}
